package MainProcess;




import java.util.Calendar;

import com.opensymphony.xwork2.ActionSupport;

public class MainClick extends ActionSupport{

	public String Test() throws Exception {
		Calendar cal = Calendar.getInstance();
		cal.add(Calendar.MONTH, -2);
		cal.get(Calendar.DAY_OF_MONTH);
		System.out.println("nani month : " + cal.get(Calendar.MONTH));
		cal.get(Calendar.DATE);
		System.out.println("nanin date  : "   +  cal.get(Calendar.DATE));
		System.out.println(cal.get(Calendar.DAY_OF_WEEK));
		
		
		System.out.println( "first week of month : " + cal.get(Calendar.WEEK_OF_MONTH));
		System.out.println( "last day : " + cal.get(Calendar.DAY_OF_MONTH) );
		
		
	  return "SUCCESS";
	 } 
}
